package entity.main;

import java.io.Serializable;
import java.lang.String;
import javax.persistence.*;


public class Objective implements Serializable {

	@Id
	private String Name;
	
	
	private static final long serialVersionUID = 1L;

	public Objective(String string) {
		super();
		Name = string;
	}

	public String getName() {
		return this.Name;
	}

	public void setName(String Name) {
		this.Name = Name;
	}

	public boolean equals(Object o)
	{
		if(o instanceof Objective)
		{
			Objective obj = (Objective)o;
			return obj.getName().equals(Name);
		}
		return false;
	}
	
	public int hashCode()
	{
		return Name.hashCode();
	}
	
	public String toString()
	{
		return Name;
	}
}
